import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:sainbainu/common/values/colors.dart';

import '../index.dart';

class CustomTabBar extends GetView<WalletController> {
  final void Function(int) onTap;

  const CustomTabBar({
    super.key,
    required this.onTap,
  });

  @override
  Widget build(BuildContext context) {
    return ColoredBox(
      color: AppColors.nav,
      child: TabBar(
        onTap: onTap,
        tabs: const [
          Tab(text: '全部'),
          Tab(text: '充值'),
          Tab(text: '提现'),
          Tab(text: '消费'),
        ],
      ),
    );
  }
}
